package com.laomou.poker.rule;

import com.laomou.poker.rule.bull.Bull;
import com.laomou.poker.rule.fried.Fried;
import com.laomou.poker.rule.landlord.Landlord;

public class PokerRuleFactory {

	public static IPokerRule makePokerRule(PokerRuleType type) {
		IPokerRule rule = null;
		switch (type) {
		case 斗地主:
			rule = new Landlord();
			break;
		case 斗牛:
			rule = new Bull();
			break;
		case 炸金花:
			rule = new Fried();
			break;
		}
		return rule;
	}
}
